package cn.apelx.shardingjdbc.domain;

import lombok.Getter;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 字典
 *
 * @author apelx
 * @since 2022-05-15
 */
@ToString
@Getter
@Entity
@Table(name = "dictionary")
public class Dictionary implements Serializable {

    @Id
    private Integer id;

    private String name;

    private Integer type;

    protected Dictionary() {
    }

    public Dictionary(Integer id, String name, Integer type) {
        this.id = id;
        this.name = name;
        this.type = type;
    }
}
